package sanshui.system.trade.factory.trade.position;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import sanshui.system.trade.config.SpringContextHolder;
import sanshui.system.trade.db.entity.TradeAccount;
import sanshui.system.trade.db.entity.TradeAccountTbl;
import sanshui.system.trade.db.entity.TradeHisPosition;
import sanshui.system.trade.pojo.ao.CreateAccountAo;
import sanshui.system.trade.service.IAccountService;
import sanshui.system.trade.service.IBuySellService;
import sanshui.system.trade.util.CommonTimeUtil;

import java.util.ArrayDeque;
import java.util.Deque;

@Slf4j
@Data
public class StockAccount {
    TradeAccount accountInfo;

    Deque<TradeHisPosition> positions = new ArrayDeque<>(); // 当前仓位

    IAccountService accountService = SpringContextHolder.getBean(IAccountService.class);;

    public StockAccount() {
    }

}